package com.deppon.vts.micro.service.logic;

import com.deppon.vts.micro.service.IBiddingService;
import com.deppon.vts.micro.service.biz.PublicBizBaseService;
import com.deppon.vts.micro.service.biz.bean.BizContext;
import com.deppon.vts.micro.service.logic.bean.LogicBiddingRequestEntity;
import com.deppon.vts.micro.service.logic.bean.LogicBiddingResponseEntity;

/**
 * 所有的中标服务必须实现该类
 * 
 * @author zhuhongyingxx@sina.com
 * @param <I>
 * @param <R>
 */

public abstract class LogicBiddingService<I extends LogicBiddingRequestEntity, R extends LogicBiddingResponseEntity>
		extends PublicBizBaseService<I, R> implements IBiddingService<I, R> {

	public LogicBiddingService() {
		INTERFACE = "BG";
	}

	@Override
	public void process(BizContext<I, R> ctx) throws Exception {
		LogicBiddingRequestEntity request = (LogicBiddingRequestEntity) ctx.getRequest();
		LogicBiddingResponseEntity response = (LogicBiddingResponseEntity) ctx.getResponse();
		// TODO 这里完善服务的通用逻辑
		{
			if (log.isDebugEnabled()) {
				log.debug("LogicBiddingService is processing for msgId: {}", this.getMsgId());
			}
		}
		super.process(ctx);
	}

	@Override
	public void confirmTccTransaction(BizContext<I, R> ctx) {

	}

	@Override
	public void cancelTccTransaction(BizContext<I, R> ctx) {

	}

}
